package com.behavior.strategy;


public class Calculate {
  
	private Opera opera;

  
	public Calculate(Opera opera) {
		this.opera = opera;
	}

	public void doOpera(int sum1, int sum2) {
		int n = this.opera.doOpera(sum1, sum2);
		System.out.println("the result is ： " + n);
	}
}